﻿using DataStandard;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace Demo
{
    /// <summary>
    /// Window_For_AddProtocol.xaml 的交互逻辑
    /// </summary>
    public partial class Window_For_AddProtocol : Window
    {
        public Window_For_AddProtocol()
        {
            InitializeComponent();

            Ini_Auto();
        }

        #region 页面通用代码 2024年3月8日14:44:52

        private void Ini_Auto()
        {
            this.Closing += Window_Closing;
        }

        public delegate void CallBack(object data);
        public event CallBack TellParent;

        private void Window_Closing(object? sender, System.ComponentModel.CancelEventArgs e)
        {
            var t = sender.ToString();
            TellParent?.Invoke($"{t} is Closing...");
        }
        #endregion


    }
}
